package com.gzhryc.weixin.gzh.models;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class MenuEntity implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Menu menu;
	
	public MenuEntity() {
		this.menu = new Menu();
	}
	
	public Menu getMenu() {
		return menu;
	}

	public void setMenu(Menu menu) {
		this.menu = menu;
	}

	public static class Menu implements Serializable{
		
		private static final long serialVersionUID = 1L;
		
		private List<Button> button;
		
		public Menu() {
			this.button = new ArrayList<Button>();
		}

		public List<Button> getButton() {
			return button;
		}

		public void setButton(List<Button> button) {
			this.button = button;
		}
	}
	
	public static class Button implements Serializable{

		private static final long serialVersionUID = 1L;
		
		private String type;
		private String name;
		private String key;
		private String url;
		private String appid;		//小程序的appid,  类型必须是：miniprogram
		private String pagepath;	//小程序的页面路径，类型必须是：miniprogram
		private List<Button> sub_button;
		
		public String getType() {
			return type;
		}
		public void setType(String type) {
			this.type = type;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getKey() {
			return key;
		}
		public void setKey(String key) {
			this.key = key;
		}
		public String getUrl() {
			return url;
		}
		public void setUrl(String url) {
			this.url = url;
		}
		public String getAppid() {
			return appid;
		}
		public void setAppid(String appid) {
			this.appid = appid;
		}
		public String getPagepath() {
			return pagepath;
		}
		public void setPagepath(String pagepath) {
			this.pagepath = pagepath;
		}
		public List<Button> getSub_button() {
			return sub_button;
		}
		public void setSub_button(List<Button> sub_button) {
			this.sub_button = sub_button;
		}
	}
}
